Optimal. Leaf size=217 \[ \frac {b F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d \left (a^2-b^2\right )}-\frac {\left (2 a^2-3 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d \left (a^2-b^2\right )}-\frac {b \left (5 a^2-3 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d (a-b) (a+b)^2}+\frac {b^2 \sin (c+d x)}{a d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}+\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.68, antiderivative size = 217, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2802, 3055, 3059, 2639, 3002, 2641, 2805} \[ \frac {b F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d \left (a^2-b^2\right )}-\frac {\left (2 a^2-3 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d \left (a^2-b^2\right )}-\frac {b \left (5 a^2-3 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d (a-b) (a+b)^2}+\frac {b^2 \sin (c+d x)}{a d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}+\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2802
Rule 2805
Rule 3002
Rule 3055
Rule 3059
Rubi steps
\begin {align*} \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))^2} \, dx &=\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}+\frac {\int \frac {\frac {1}{2} \left (2 a^2-3 b^2\right )-a b \cos (c+d x)+\frac {1}{2} b^2 \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}+\frac {2 \int \frac {-\frac {1}{4} b \left (4 a^2-3 b^2\right )-\frac {1}{2} a \left (a^2-2 b^2\right ) \cos (c+d x)-\frac {1}{4} b \left (2 a^2-3 b^2\right ) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{a^2 \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}-\frac {2 \int \frac {\frac {1}{4} b^2 \left (4 a^2-3 b^2\right )-\frac {1}{4} a b^3 \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{a^2 b \left (a^2-b^2\right )}-\frac {\left (2 a^2-3 b^2\right ) \int \sqrt {\cos (c+d x)} \, dx}{2 a^2 \left (a^2-b^2\right )}\\ &=-\frac {\left (2 a^2-3 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 \left (a^2-b^2\right ) d}+\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}+\frac {b \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{2 a \left (a^2-b^2\right )}-\frac {\left (b \left (5 a^2-3 b^2\right )\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{2 a^2 \left (a^2-b^2\right )}\\ &=-\frac {\left (2 a^2-3 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 \left (a^2-b^2\right ) d}+\frac {b F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a \left (a^2-b^2\right ) d}-\frac {b \left (5 a^2-3 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 (a-b) (a+b)^2 d}+\frac {\left (2 a^2-3 b^2\right ) \sin (c+d x)}{a^2 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} (a+b \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.14, size = 278, normalized size = 1.28 \[ \frac {4 \sqrt {\cos (c+d x)} \left (\frac {b^3 \sin (c+d x)}{\left (b^2-a^2\right ) (a+b \cos (c+d x))}+2 \tan (c+d x)\right )-\frac {\frac {\left (8 a b^2-4 a^3\right ) \left (2 F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-\frac {2 a \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a+b}\right )}{b}+\frac {2 \left (9 b^3-10 a^2 b\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a+b}-\frac {2 \left (2 a^2-3 b^2\right ) \sin (c+d x) \left (\left (b^2-2 a^2\right ) \Pi \left (-\frac {b}{a};\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )+2 a (a+b) F\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )-2 a b E\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )\right )}{a b \sqrt {\sin ^2(c+d x)}}}{(b-a) (a+b)}}{4 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.49, size = 874, normalized size = 4.03 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\cos \left (c+d\,x\right )}^{3/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________